package com.ohos.liveeventbus.utils;


import ohos.eventhandler.EventRunner;

/**
 * Created by liaohailiang on 2019/3/26.
 */
public final class ThreadUtils {

    public static boolean isMainThread() {
        return EventRunner.getMainEventRunner().getThreadId() == Thread.currentThread().getId();
    }
}
